using System;
using System.Collections;
using Noea.TogSim.Model.Interfaces;
        
namespace Noea.TogSim.Model.Train.Engine
{
    /// <summary>
    /// Here is 3 kinds of di
    /// </summary>
    public abstract class TrainEngineDispatch : ITrainEngineDispatch
    {
        #region ITrainEngineDispatch Members

        ArrayList _trains;

        public ArrayList Trains
        {
            get { return _trains; }
            set { _trains = value; }
        }

        public TrainEngineDispatch()
        { }
        public TrainEngineDispatch(ArrayList trains)
        {
            _trains = trains;
        }

        public abstract void Create();
        public void Create(System.Collections.ArrayList trains)
        {
            Trains = trains;
            Create();
        }
        public abstract void Dispose();

        #endregion
    }
}
